package cn.tedu.lonnghospital.appointment.service;

import cn.tedu.lonnghospital.appointment.pojo.dto.AppointmentAddNewDTO;
import cn.tedu.lonnghospital.appointment.pojo.dto.AppointmentUpdateDTO;
import cn.tedu.lonnghospital.appointment.pojo.vo.AppointmentListItemVO;
import cn.tedu.lonnghospital.appointment.pojo.vo.AppointmentStandardVO;
import cn.tedu.lonnghospital.appointment.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface AppointmentService {
    void addNew(AppointmentAddNewDTO appointmentAddNewDTO);
    void deleteById(long id);
    PageData<AppointmentListItemVO> listByPatientId(Long patientId, Integer pageNum, Integer pageSize);
    PageData<AppointmentListItemVO> listByPatientId(Long patientId, Integer pageNum);
    AppointmentStandardVO getStandard(long id);
    void updateById(long id, AppointmentUpdateDTO appointmentUpdateDTO) ;
    PageData<AppointmentListItemVO> listByDoctorId(Long doctorId, Integer pageNum, Integer pageSize);
    PageData<AppointmentListItemVO> listByDoctorId(Long doctorId, Integer pageNum);
    void updateFinishById(long id);
}
